﻿using UnityEngine;

public class ButterflyInputBehaviour : BaseBehaviour, ButterflyMovement
{
    private ButterflyInput butterflyInput;
   
    protected override void start()
    {
        setUpInput();
    }

    private void setUpInput()
    {
        butterflyInput = new ButterflyInput(this);
    }

    protected override void update(float deltaTime)
    {
        butterflyInput.update();
    }
    
    public void up()
    {
        sendMessage("moveUp");
    }

    public void down()
    {
        sendMessage("moveDown");
    }
}

